import express from 'express';
import { ResidentController } from '../controllers/residentController.js';

const router = express.Router();

router.get('/', ResidentController.getAllResidents);
router.get('/:id', ResidentController.getResidentById);
router.post('/', ResidentController.createResident);
router.put('/:id', ResidentController.updateResident);
router.delete('/:id', ResidentController.deleteResident);

export default router;